libmyc.a : mystdio.o mystring.o
	ar -rc $@ $^
mystdio.o : mystdio.c
	gcc -c $<
mystring.o : mystring.c	
	gcc -c $<

#gcc -o usercode usercode.c -I ./lib/include -L ./lib/mylib/ -l myc

.PHONY: output
output:
	mkdir -p  lib/include
	mkdir -p lib/mylib
	cp -f *.h lib/include #头文件
	cp -f *.a lib/mylib	#库的.o文件
	tar czf lib.tgz lib

.PHONY: clean
clean:  
	rm -fr *.a *.o lib *.tgz usercode 
